package userdb;

import java.util.Collections;
import java.util.Map;
import java.util.TreeMap;

import misc.Hashing;

public enum UserDb {
  SINGLETON;

  private final Map<String, byte[]> users = new TreeMap<String, byte[]>();

  private UserDb() {
    users.put("alice", Hashing.get128bitsFromSHA_512("derpassword"));
    users.put("bob", Hashing.get128bitsFromSHA_512("derpassword2"));
  }

  public Map<String, byte[]> getUsers() {
    return Collections.unmodifiableMap(users);
  }

}
